:root {
    --primary-color: #4285f4;
    --hover-color: #3367d6;
    --error-color: #dc3545;
    --success-color: #28a745;
    --background-color: #f5f7fa;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.register-container {
    width: 100%;
    max-width: 360px;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.register-container:hover {
    transform: translateY(-3px);
}

.register-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 500;
}

.register-form-group {
    margin-bottom: 1.5rem;
}

.register-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.875rem;
}

.register-input {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all var(--transition-speed) ease;
    background-color: white;
}

.register-input:hover {
    border-color: #bdc3c7;
}

.register-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.register-captcha-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.register-captcha-input {
    flex: 1;
}

.register-captcha-image {
    height: 2.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity var(--transition-speed) ease;
}

.register-captcha-image:hover {
    opacity: 0.8;
}

.register-button {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.register-button:hover {
    background-color: var(--hover-color);
}

.register-button:active {
    transform: scale(0.98);
}

.register-links {
    margin-top: 1.8rem;
    text-align: center;
    font-size: 0.875rem;
    position: relative;
    padding-top: 1rem;
}

.register-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: #e0e0e0;
}

.register-link {
    display: inline-block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: color var(--transition-speed) ease;
}

.register-link:hover {
    color: var(--hover-color);
}

.register-message {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.register-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.register-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}